//
//  DDCloudManager.m
//  PrivateCloud
//
//  Created by sarah doo on 13-9-26.
//  Copyright (c) 2013年 sarah doo. All rights reserved.
//

#import "DDCloudManager.h"
#import "DDVerifyThread.h"
//#import "DDConnectCallback.h"

static DDCloudManager *_cloudManager;

@implementation DDCloudManager

@synthesize dealFileDelegate,sendThread,recvThread;
//@synthesize delegate;
//
//- (id)init {
//    if (self = [super init]) {
//        _cloudManager = self;
//    }
//    return self;
//}

+(DDCloudManager *)getCloudManager
{
    if(_cloudManager == nil){
        _cloudManager = [[DDCloudManager alloc]init];
        _cloudManager.sendThread = [DDVerifyThread sharedVerifyThread];
        _cloudManager.recvThread = [DDTCPListenThread sharedTCPListener];
    
    }
    return _cloudManager;
}

-(void)downloadFiles:(NSArray *)files{
    [sendThread downFileList:files];
}


-(void)uploadFiles:(NSArray *)files{
    
}

////搜索私有云设备列表
//- (NSArray *)seachAll {
//    
//    
////    [self.delegate ]
//    return Nil;
//}
//
////上传通讯录文件
//- (void)uploadAllContacts {
//
//}
//
////上传文件列表
//- (void)uploadFile:(NSArray *)files {
//
//}
////下载文件列表
//- (void)downloadFile:(NSArray *)files {
//
//}
//
////上报文件信息列表
//- (void)reportFileList:(NSArray *)fileList{
//
//}
////判断中断中断操作
//- (void)cancelUploadFile:(NSString *)type {
//
//}
////下载通讯录回调接口
//- (void)downAddressBook {
//    
//}

@end
